package com.kevin.springboot.prototype.demo1;

import java.time.LocalDateTime;

public class BiliBili {

    public static void main(String[] args) throws CloneNotSupportedException {

        LocalDateTime dateTime = LocalDateTime.now();
        System.out.println(dateTime);
        Video v1 = new Video("kevin", dateTime);
        Video v2 = (Video) v1.clone();

        System.out.println("v1==========>"+v1);
        System.out.println("v2==========>"+v2);

        // System.out.println("v1 hashcode==========>"+v1.hashCode());
        // System.out.println("v2 hashcode==========>"+v2.hashCode());
        dateTime = dateTime.minusYears(3L);
        System.out.println(dateTime);
        System.out.println("=======================after clone========================");

        System.out.println("v1==========>"+v1);
        System.out.println("v2==========>"+v2);

    }
}
